package com.darren.framework.action;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;

import net.sf.ehcache.CacheManager;
import org.springframework.data.redis.cache.RedisCacheManager;
import redis.clients.jedis.JedisPool;

public class BaseAction {
	
	protected Logger logger = LogManager.getLogger(getClass());
	
	@Autowired
    protected CacheManager ehCacheManager;

	@Autowired
	protected RedisCacheManager redisCacheManager;

	@Autowired
	protected JedisPool jedisPool;//注入JedisPool
	
	public static final String SUCCESS = "success";
	
	public static final String ERROR = "error";
	
}
